package com.zjmzxfzhl.modules.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zjmzxfzhl.common.core.base.BaseService;
import com.zjmzxfzhl.modules.app.entity.AppFavor;
import com.zjmzxfzhl.modules.app.entity.AppFavor;

/**
 * Service
 * 
 * @author 张森荣
 */
public interface AppFavorService extends BaseService<AppFavor> {
    /**
     * 分页查询
     * 
     * @param page
     * @param appFavor
     * @return
     */
    IPage<AppFavor> list(IPage<AppFavor> page, AppFavor appFavor);

    /**
     * 团队新增成员，自动计算机构级别、机构级次码、是否叶子
     *
     * @param appFavor
     * @return
     */
    boolean saveAppFavor(AppFavor appFavor);

    /**
     * 删除关联
     *
     * @param appFavor
     * @return
     */
    boolean relationDel(AppFavor appFavor);
}
